]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Use '+' to separate variant when launching tecla
authorSebastian Keller <skeller@gnome.org>
Sun, 19 May 2024 18:24:54 +0000 (20:24 +0200)
committerSebastian Keller <skeller@gnome.org>
Sun, 19 May 2024 18:24:54 +0000 (20:24 +0200)
The code was not changed when switching from gkbd-keyboard-display which
was using tab to separate layout and variant. Tecla uses '+' instead.

This fix was suggested by Neil Mayhew.

Fixes: 04aaa4b67 ("keyboard: Spawn "tecla" to show keyboard map")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7638
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3324>

js/ui/status/keyboard.js

index cfc0a01f6b3bb2a1d2d62184e701aa896a374ae3..872602a7f25ab77da6cd92b82c1d6f2f03b53778 100644 (file)
@@ -1129,7 +1129,7 @@ class InputSourceIndicator extends PanelMenu.Button {
 
         let description = xkbLayout;
         if (xkbVariant.length > 0)
-            description = `${description}\t${xkbVariant}`;
+            description = `${description}+${xkbVariant}`;
 
         Util.spawn(['tecla', description]);
     }